﻿<%@ Page Debug="true" Language="C#" MasterPageFile="~/_admin/admin.master" 
  Inherits="SPDesigner.Policy.SPDAdminJobManager, SPDesigner.Policy, 
  Version=1.0.0.0, Culture=neutral, PublicKeyToken=07727ad2778b8c9e" %>

<%@ Register Tagprefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" 
  Assembly="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>

<%@ Register TagPrefix="wssuc" TagName="InputFormSection" src="~/_controltemplates/InputFormSection.ascx" %>

<%@ Register TagPrefix="wssuc" TagName="ButtonSection" src="~/_controltemplates/ButtonSection.ascx" %>

<asp:Content ID="Content4" ContentPlaceHolderID="PlaceHolderPageTitle" runat="server">
  SharePoint Desinger Policy
</asp:Content>

<asp:Content ID="Content1" ContentPlaceHolderID="PlaceHolderPageTitleInTitlearea" runat="server">
  SharePoint Desinger Permission
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="PlaceHolderPageDescription" runat="server">

  This page allows you to enable or disable SharePoint Designer on each site collection. 

</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="PlaceHolderMain" runat="server">
  <table width="100%" class="propertysheet" cellpadding="0" cellspacing="0" border="0">
    <tr><td class="ms-error"><asp:Literal ID="ErrorMessageLiteral" runat="server" EnableViewState="false" /> </td></tr>
  </table>
  
  <table border="0" cellspacing="0" cellpadding="0" width="100%">
    <tr>
      <td>
        <!-- web application selector -->
        <wssuc:InputFormSection runat="server"
                    Title="<%$Resources:spadmin, multipages_webapplication_title%>"
                    Description="<%$Resources:spadmin, multipages_webapplication_desc%>" >
          <Template_InputFormControls>
            <tr>
              <td>
                <SharePoint:WebApplicationSelector id="WebAppSelector" runat="server" 
                  OnContextChange="WebAppSelector_OnContextChange" />
              </td>
            </tr>
          </Template_InputFormControls>
        </wssuc:InputFormSection>
        
        <!-- site collection selector -->
        <wssuc:InputFormSection runat="server"
                                  Title="Site Collections"
                                  Description="Select the site collections to enable or disable SharePoint Designer.<br> All subsites will be affected with this setting.">
          <Template_InputFormControls>
            <tr valign="top">
              <td>
                <asp:Repeater ID="SiteCollectionRepeater" runat="server" 
                OnItemDataBound="SiteCollectionRepeater_OnItemDataBound">
                  <ItemTemplate>
                    <asp:TextBox runat="server" Visible="false" ID="SiteCollectionIdTextBox" />
                    <asp:Literal runat="server" ID="SiteCollectionLiteral" /><br />
                    <asp:RadioButtonList ID="JobStatusList" runat="server" RepeatDirection="Horizontal">
                      <asp:ListItem class="ms-descriptionText">Enabled</asp:ListItem>
                      <asp:ListItem class="ms-descriptionText">Disabled</asp:ListItem>
                    </asp:RadioButtonList>
                  </ItemTemplate>
                  <SeparatorTemplate><br /></SeparatorTemplate>
                </asp:Repeater>
              </td>
            </tr>
          </Template_InputFormControls>
        </wssuc:InputFormSection>
        
        <!-- job runtime schedule -->
      
        
        <wssuc:ButtonSection runat="server">
          <template_buttons>
            <asp:Button id="SetTimerJobsButton" runat="server" class="ms-ButtonHeightWidth" Text="OK" 
            OnClick="SetTimerJobsButton_OnClick" />
          </template_buttons>
        </wssuc:ButtonSection>
      </td>
    </tr>
  </table>
</asp:Content>

